//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;

namespace OpenLS.Spreadsheet.UI
{
    class DataObjectFactory
    {
        public static object CreateDataObject(string format, object data)
        {
            if (SecurityHelper.IsFullTrust)
            {

                return new DataObject(format, data);

            }
            return new InternalDataObject(format, data);
        }

    }
}
